﻿using NetByDocker.Core.Npoi.Attributes;
using NetByDocker.Core.Npoi.Dto;
using NetByDocker.Domain.Model.Enum;

namespace NetByDocker.Domain.Model.UserManage
{
    /// <summary>
    ///获取用户列表
    /// </summary>
    public class GetUserPageInfoResponse
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [ColumnName("用户ID")]
        public long Id { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [ColumnName("账号")]
        public string Account { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [ColumnName("姓名")]
        public string Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [ColumnName("姓别")]
        public SexEnum Sex { get; set; }

        /// <summary>
        /// 学分
        /// </summary>
        [ColumnName("学分")]
        public double Credit { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        [ColumnName("班级名")]
        public string ClassName { get; set; }

        /// <summary>
        /// 班级ID
        /// </summary>
        [IgnoreColumn]
        public long ClassId { get; set; }
    }

    // [JsonSourceGenerationOptions(WriteIndented = true)]
    // [JsonSerializable(typeof(ResultModel<GetQueryPageResult<GetUserPageInfoResponse>>))]
    // [JsonSerializable(typeof(GetQueryPageResult<GetUserPageInfoResponse>))]
    // [JsonSerializable(typeof(List<GetUserPageInfoResponse>))]
    // public sealed partial class GetUserQueryPageInfoContext : JsonSerializerContext
    // { }
}